package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.GoodsDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.GoodsMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.Goods;

import stylistcrm.core.services.goods.dto.GoodsPageDTO;

@Repository
public class GoodsDaoImpl implements GoodsDao{
	
	@Autowired
	private GoodsMapper goodsMapper;

	@Override
	public Long deleteByPrimaryKey(Long id) {
		return goodsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public Long insert(Goods record) {
		return goodsMapper.insert(record);
	}

	@Override
	public Long insertSelective(Goods record) {
		return goodsMapper.insertSelective(record);
	}

	@Override
	public Goods selectByPrimaryKey(Long id) {
		return goodsMapper.selectByPrimaryKey(id);
	}

	@Override
	public Long updateByPrimaryKeySelective(Goods record) {
		return goodsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Long updateByPrimaryKeyWithBLOBs(Goods record) {
		return goodsMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public Long updateByPrimaryKey(Goods record) {
		return goodsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Goods> getPageList(GoodsPageDTO goodPageDto) {
		return goodsMapper.getPageList(goodPageDto);
	}

	@Override
	public Integer getPageListSize(GoodsPageDTO goodPageDto) {
		return goodsMapper.getPageListSize(goodPageDto);
	}
	
   
}